package com.edu.mail.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.edu.mail.product.bean.Product;
import com.edu.mail.product.mapper.ProductMapper;

@SpringBootApplication
public class App {
	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(App.class,args);//参数一是springboot的源
		
//		ProductMapper productMapper = context.getBean(ProductMapper.class); 
//		Product product =  new Product();
//		product.setPname("thinking in java");
//		product.setPrice(65d);
//		product.setType("书籍");
//		productMapper.add(product);
//		
//		context.close();
	}
}
